package cn.xfdzx.android.apps.shop.model;


import java.util.Map;

import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.PeiSongBeen;
import cn.xfdzx.android.apps.shop.bean.ReturnReasonBean;
import cn.xfdzx.android.apps.shop.contract.AddAddressContract;
import cn.xfdzx.android.apps.shop.contract.PeisongyuanContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class PeiSongModel implements PeisongyuanContract.Model {




    @Override
    public Flowable<PeiSongBeen> peisongyuan(String order_id) {
        return   RetrofitClient.getInstance().getApi().peisong(order_id);
    }

    @Override
    public Flowable<ReturnReasonBean> getRefundRreason() {
        return RetrofitClient.getInstance().getApi().getRefundRreason();
    }

    @Override
    public Flowable<ReturnReasonBean> getAfterServiceRequest(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getAfterServiceRequest(param);
    }
}
